<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<meta name="format-detection" content="telephone=no">
<title>{maccms:name}</title>
<meta name="keywords" content="{maccms:keywords}" />
<meta name="description" content="{maccms:description}" />
<!-- ico -->
<link rel="shortcut icon" type="image/x-icon" href="/images/ico.ico">
<link rel="stylesheet" href="{maccms:path_tpl}css/basic.css">
<link rel="stylesheet" href="{maccms:path_tpl}css/style.css">
<link rel="stylesheet" href="{maccms:path_tpl}fonts/XEIcon/xeicon.min.css">
<link rel="stylesheet" href="{maccms:path_tpl}fonts/hyundai/hyundai.css">
<link rel="stylesheet" href="{maccms:path_tpl}plugins/mCustomScrollbar/jquery.mCustomScrollbar.css">
<link rel="stylesheet" href="{maccms:path_tpl}plugins/slick/slick.css">
<script src="{maccms:path_tpl}js/jquery-1.11.1.min.js"></script>
    <script>
        var path_tpl = '{maccms:path_tpl}';
    </script>
    <script src="{maccms:path_tpl}js/banner.js"></script>
    {maccms:include}
</head>
<body>
{maccms:head} 

<script>
$(document).ready(function(){
$(".bottom li:eq(2)").addClass("on")
})
</script>
<div class="wrapper">
    <div class="visual">
        <div class="wrap">

        </div>
    </div>
<div class="height15"></div>
<div class="video">
<div class="video_head">
<div class="oh">
<p class="tit fl">시청기록<font id="hitCont"></font></p>
    <div class="btn fr"  id="clear" style="display: none;"><i class="xi-close"></i><p>전체기록삭제</p></div>
</div>
</div>
<div class="list">
<ul>
</ul>
</div>
</div>
<div class="height15"></div>
<div class="banner">
</div>
</div>

<script>
    function info(jsondata){
        var html = '';
        if(jsondata.length > 0){
            for($i=0; $i<jsondata.length; $i++){
                var v = jsondata[$i];
                var link = v.link.replace('detail', 'play').replace('.html', '-src-1-num-1.html');
                html +='<li><a href="'+ link +'" title="'+ v.name+'" target="_blank"><div class="img"><img class="img"  src="http://video.1haza.com/'+ v.pic+'" alt="'+ v.name+'"/> </div><p class="tit">'+ v.name+'</p></a> </li>';
            }
            $("#clear").show();
        }
        $("#hitCont").html("("+jsondata.length+"건)");
        $(".list ul").html(html);
    }
    $(function () {
        MAC.History.List();
        $("#clear").click(function() {
            MAC.History.Clear();
            $(".video .list ul").html("");
            $(this).remove();
        });
    })
</script>
{maccms:foot}
</body>
</html>